home *** CD-ROM | disk | FTP | other *** search
/ Aminet 23 / Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso / Aminet / text / edit / Smartindent.lha / Smartindent / Source / dispatcher.h < prev    next >
C/C++ Source or Header  |  1997-12-14  |  835b  |  36 lines

  1. /*(( "Kopf" */
  2. /* -----------------------------------------------------------------------------
  3.  
  4.    $Id: dispatcher.h,v 1.4 1997/06/26 14:27:02 mshopf Exp mshopf $
  5.  
  6.    GoldED API client, ©1997 Matthias Hopf.
  7.    Compiled with SasC.
  8.  
  9.  
  10.    Function dispatcher.
  11.  
  12.    ------------------------------------------------------------------------------
  13. */
  14.  
  15. /*)) */
  16. #ifndef _DISPATCHER_H_
  17. #define _DISPATCHER_H_
  18.  
  19. struct Parser
  20. {
  21.     char *Cmd;
  22.     char *(*Handler) (struct SmartClient *, struct APIMessage *, LONG *);
  23.     char *Template;
  24. };
  25.  
  26. extern char *ScanArgs    (struct SmartClient *, char *, struct APIMessage *);
  27.  
  28. extern void DispatchCmd (struct SmartClient *, struct APIMessage *);
  29. extern void DispatchKey (struct SmartClient *, struct APIMessage *);
  30.  
  31. extern char *apiCommands[];
  32. extern struct Parser Parser[];
  33.  
  34.  
  35. #endif /* _DISPATCHER_H_ */
  36.